package com.ssm.service.impl;

import com.ssm.dao.ChairMapper;
import com.ssm.dao.StudentMapper;
import com.ssm.dao.TeacherMapper;
import com.ssm.dto.AssetsDTO;
import com.ssm.dto.AssetsEditDTO;
import com.ssm.dto.ListDTO;
import com.ssm.entity.Chair;
import com.ssm.service.IChairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChairMapperImpl implements IChairService {

    @Autowired
    private ChairMapper chairMapper;

    @Override
    public List<Chair> queryChair(AssetsDTO assetsDTO) {
        return chairMapper.queryChair(assetsDTO);
    }

    @Override
    public int editChair(AssetsEditDTO assetsEditDTO) {

        return chairMapper.editChair(assetsEditDTO);
    }

    @Override
    public int delChair(ListDTO chId) {
        return chairMapper.delChair(chId);
    }

    @Override
    public int setSrc(ListDTO listDTO) {
        return chairMapper.setSrc(listDTO);
    }

    @Override
    public int updateChairSidToDeleteStudent(List<String> strings) {
        return chairMapper.updateChairSidToDeleteStudent(strings);
    }
}
